function [newImage] = basicThresholding(image, t)
%BASICTHRESHOLDING outputs the thresholded image using a threshold of 't'

% Initialization of a blank image as big as the input
newImage = zeros(size(image));
% Find the indexs of the values higher than the threshold
threshPoints = find(image > t);
% We put ones in the corresponding indexs
newImage(threshPoints) = 1;
    
end

